﻿<%@ page contentType="text/html;charset=UTF-8" isELIgnored="false"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<c:set var="questionTopLevel" value="0"/>
<c:if test="${questiono.isTop == true}">
    <c:set var="questionTopLevel" value="1"/>
</c:if>
<c:if test="${questiono.isSecondaryTop == true}">
    <c:set var="questionTopLevel" value="2"/>
</c:if>
    <div align="left" style="width:500;padding:0 0 0 200;">
         <div id="topDiv">
        <br><br><b>置顶操作</b><br>         
                <html:form action="/question.mrqa">
                <html:hidden property="id"/>
                <html:hidden property="action" value="top"/>
                将帖子【<c:if test="${questiono.titleAttribute != null}"><span style="<c:out value="${questiono.titleAttribute}" />"></c:if><c:out value="${questiono.title}"/><c:if test="${questiono.titleAttribute != null}"></span></c:if>】置顶到：<br>
                <c:if test="${questionTopLevel == '1'}">
                    <input type="radio" name="topLevel" value="1" checked/>总汇(默认置顶到分类列表)<br>
                    <input type="radio" name="topLevel" value="2" />分类帖子列表<br>
                    <input type="radio" name="topLevel" value="0" />无(取消所有置顶)<br>
                </c:if>             
                <c:if test="${questionTopLevel == '2'}">
                    <input type="radio" name="topLevel" value="1"/>总<br>
                    <input type="radio" name="topLevel" value="2" checked/>子<br>
                    <input type="radio" name="topLevel" value="0" />无<br>
                </c:if>             
                <c:if test="${questionTopLevel == '0'}">
                    <input type="radio" name="topLevel" value="1"/>总<br>
                    <input type="radio" name="topLevel" value="2"/>子<br>
                    <input type="radio" name="topLevel" value="0" checked/>无<br>
                </c:if>             
                <input type="submit" value="提交"/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" value="返回查看帖子页面" onclick="history.back(1);"/>
                </html:form>
          </div>
    </div>
